package com.tg.data.http.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class AIGuardDataBean implements Parcelable {
    @SerializedName("switch")
    public int mSwitch;

    public int interval;

    @SerializedName("max-interval")
    public int  maxInterval = 8;

    public String start;
    public String end;

    public AIGuardDataBean(){
        mSwitch = 0;
        interval = 0;
    }


    protected AIGuardDataBean(Parcel in) {
        mSwitch = in.readInt();
        interval = in.readInt();
        maxInterval = in.readInt();
        start = in.readString();
        end = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(mSwitch);
        dest.writeInt(interval);
        dest.writeInt(maxInterval);
        dest.writeString(start);
        dest.writeString(end);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<AIGuardDataBean> CREATOR = new Creator<AIGuardDataBean>() {
        @Override
        public AIGuardDataBean createFromParcel(Parcel in) {
            return new AIGuardDataBean(in);
        }

        @Override
        public AIGuardDataBean[] newArray(int size) {
            return new AIGuardDataBean[size];
        }
    };
}
